<?php

$config['SITE_PATH'] = str_replace(APPNAME.'\Conf', '', str_replace(APPNAME.'/Conf', '', dirname(__FILE__)));
 


$config['SUBFOLDER'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', str_replace('\\','/',$config['SITE_PATH']));
if(strpos($config['SUBFOLDER'], '/')!==0){
	$config['SUBFOLDER'] = '/'.$config['SUBFOLDER'];
}
$config['APP_URL'] = 'http://'.$_SERVER['HTTP_HOST'].$config['SUBFOLDER'];
return array(
    /*系统相关*/
	'URL_MODEL'=>2,   // 伪静态模式;
	'APPMODE'=>'DEV', //开发调试模式, 发布模式'PUB';
	'DEBUG_MODE'=>true,//调试模式;	 
	'WEB_LOG_RECORD'=>true,//记录日志;
	'SESSION_TYPE'=>1 ,//session 记录方式0为文件方式1 为数据库方式;
	'_AUTOLOAD_'=>array('@.Action.GlobalAction'),  //'自动加载库文件'
    /*基本配置;*/
	'CHARSET'=>'utf-8',//默认编码;
	'ENABLED_GZIP'=>true,  //压缩输出;	
	'SITE_PATH' => $config['SITE_PATH'],
	'SUBFOLDER'=>$config['SUBFOLDER'],
	'APP_URL'=>$config['APP_URL'],
	'APP_MODEL'=>APPPATH.'/Appmodel/',
	'VAR_APP'=>'Default',
	'VAR_ACT'=>'index',
	'DB_PREFIX'=>'jp_',//前缀名
	'md5rules'=>'BOLAISHANGPING',
	'time_zone'=>'8',

);

?>